import {createI18n} from 'vue-i18n'
import zh from 'view-ui-plus/dist/locale/zh-CN';
import en from 'view-ui-plus/dist/locale/en-US';
import myEn from '@/assets/locale/en-US.json'
import myZh from '@/assets/locale/zh-CN.json'

const i18n = createI18n({
    allowComposition: true,
    globalInjection: true,
    legacy: false,
    locale: 'zh-CN',
    messages: {
        'zh-CN': {
            ...zh,
            ...myZh

        },
        'en-US': {
            ...en,
            ...myEn
        }
    }
});




export default i18n